/**
 *
 * @author John Creecy
 */
package battlebarnserver.entities;

public class PlayerEntity implements BaseEntity {

	private String playerId;
	private int health;
	private boolean damage;
	private boolean collision;
	private boolean dead;
	private int tileX;
	private int tileY;
	private boolean lastActionMove;
	private int facing;
	private String type;
	

	public PlayerEntity(String pId, int hp, int tx, int ty, int face, boolean d, boolean lastActionMov) {
		playerId = pId;
		health = hp;
		tileX = tx;
		tileY = ty;
		facing=face;
		collision=true;
		damage=false;
		dead = d;
		type="Player";
		lastActionMove = lastActionMov;
	}
	public int getTileX () {
		return tileX;
	}

	public int getTileY () {
		return tileY;
	}

	public int getFacing() {
		return facing;
	}
	public String getPlayerId() {
		return playerId;
	}

	public boolean getCollision() {
		return collision;
	}

	public boolean getDamage() {
		return damage;
	}
	
	public int getHealth() {
		return health;
	}

	public String getType() {
		return type;
	}
	
	public boolean isPlayerDead() {
		return dead;
	}
	
	public boolean getLastActionMove(){
		return lastActionMove;
	}
}
